<%-- 
    Document   : CreateUserAdmin
    Created on : 18 janv. 2012, 11:13:07
    Author     : Gaëtan
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>

 
<s:if test="errorMessages.size()>0">
    <ul><s:actionerror/></ul>
</s:if>
    
    <h1 id="header"><s:property value="%{getText('user.create.title')}" /></h1>

<s:form method="post" action="validateUser">
    <s:textfield name="user.nom" label="%{getText('user.nom')}%{getText('mandatory')}" />
    <s:textfield name="user.prenom" label="%{getText('user.prenom')}%{getText('mandatory')}" />
    <s:textfield name="user.promo" label="%{getText('user.promo')}%{getText('mandatory')}" />
    <s:textfield name="user.mail" label="%{getText('user.mail')}%{getText('mandatory')}" />
    <s:select name="typeid" label="%{getText('user.type')}" list="userTypes" listKey="id" listValue="libelle"/>
    <s:password name="mdp" label="%{getText('user.mdp')}%{getText('mandatory')}" />
    <s:password name="mdpvalidate" label="%{getText('user.mdpvalidate')}%{getText('mandatory')}" />
    <s:checkbox name="user.subscribed" label="%{getText('user.subscribed')}" />
    <s:submit value="%{getText('user.create.submit')}" />
</s:form>
